package com.xhh.nphm.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xhh.nphm.system.domain.AreaCountyAuto;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AreaCountyAutoDao extends BaseMapper<AreaCountyAuto> {
    /**
     * 查询 当前派单部门是否开启 自动签收
     * @return
     */
    @Select("select DeptId,DeptName,autoSign from tm_area_county_auto where DeptId=#{deptId} and DeptName=#{deptName} and isDel=0 ")
    AreaCountyAuto selectDeptAuto(@Param("deptId") String deptId,@Param("deptName") String deptName);
}
